import request from '@/utils/request'

// 查询列表
export function listManagement(query) {
  return request({
    url: '/aqsc/promanage/list',
    method: 'get',
    params: query
  })
}
// 查询详细
export function getManagement(projectId) {
  return request({
    url: '/aqsc/promanage/' + projectId,
    method: 'get'
  })
}

// 查询总数
export function handleNum() {
  return request({
    url: '/aqsc/promanage/numone',
    method: 'get'
  })
}
//查询所属机构
export function getDeptList() {
  return request({
    url: '/system/user/deptTree',
    method: 'get'
  })
}

// 新增
export function addManagement(data) {
  return request({
    url: '/aqsc/promanage',
    method: 'post',
    data: data
  })
}
// 修改
export function updateManagement(data) {
  return request({
    url: '/aqsc/promanage',
    method: 'put',
    data: data
  })
}
// 删除
export function delManagement(projectId) {
  return request({
    url: '/aqsc/promanage/' + projectId,
    method: 'delete'
  })
}

